package com.learn.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author YU.TAN
 * @since 2023-06-27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("role_permission_link")
public class RolePermissionLink implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色与权限关联表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色表主键
     */
    private Long roleId;

    /**
     * 权限表主键
     */
    private Long permissionId;

    /**
     * 创建时间 
     */
    private Date createTime;


}
